package com.zmn.oms.services.interfaces.xno;


import com.zmn.oms.model.entity.xno.OrderXnoBind;
import com.zmn.oms.model.entity.xno.OrderXnoBindQuery;

import java.util.List;

/**
 * 类描述：小号
 *
 * @author ligang
 * @date 2022/01/10 16:54
 */
public interface OrderXnoService {

    /**
     * 新增绑定
     *
     * @return
     */
    void saveXnoBind(OrderXnoBind orderXnoBind);

    /**
     * 修改绑定
     *
     * @param orderXnoBind
     */
    void updateOrderXnoBind(OrderXnoBind orderXnoBind);

    /**
     * 根据订单号查询绑定数量
     *
     * @param orderXnoBindQuery
     * @return
     */
    Integer countXnoBindByQuery(OrderXnoBindQuery orderXnoBindQuery);

    /**
     * 根据工单集合查询小号绑定
     *
     * @param workIdList
     * @param bindType
     * @return
     */
    List<OrderXnoBind> queryOrderXnoBindByWorkIdList(List<Long> workIdList, int bindType);

    /**
     * 查询小号绑定
     *
     * @param orderXnoBindQuery
     * @return
     */
    OrderXnoBind queryOrderXnoBindByQuery(OrderXnoBindQuery orderXnoBindQuery);

    /**
     * 查询小号绑定集合
     *
     * @param xnoBindQuery
     * @return
     */
    List<OrderXnoBind> queryOrderXnoBindListByQuery(OrderXnoBindQuery xnoBindQuery);
}
